package com.ssy.lingxi.member.merchant.api.fallback.paas;

import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.member.merchant.api.feign.paas.MemberConfigControllerFeign;
import com.ssy.lingxi.member.merchant.api.model.vo.paas.MemberConfigQueryVO;
import com.ssy.lingxi.member.merchant.api.model.vo.paas.MemberConfigVO;
import com.ssy.lingxi.member.merchant.api.model.vo.paas.MemberRuleFeignVO;

import java.util.List;

/**
 * 会员注册资料接口Fallback
 * @author 万宁
 * @version 2.0.0
 * @date 2021-06-11
 */
public class MemberConfigControllerFeignFallback implements MemberConfigControllerFeign {
    /**
     * 新增会员注册资料
     *
     * @param configVO 接口参数
     * @return 会员资料
     */
    @Override
    public Wrapper<MemberConfigQueryVO> addMemberDetail(MemberConfigVO configVO) {
        return Wrapper.fail(ResponseCode.SERVICE_MERCHANT_MEMBER_ERROR);
    }

    /**
     * 修改会员资料
     *
     * @param configVO 接口参数
     * @return 会员资料
     */
    @Override
    public Wrapper<MemberConfigQueryVO> updateMemberDetail(MemberConfigVO configVO) {
        return Wrapper.fail(ResponseCode.SERVICE_MERCHANT_MEMBER_ERROR);
    }

    /**
     * 更改会员资料配置状态
     *
     * @param configVO 接口参数
     * @return 操作结果
     */
    @Override
    public Wrapper<MemberConfigQueryVO> updateMemberDetailStatus(MemberConfigVO configVO) {
        return Wrapper.fail(ResponseCode.SERVICE_MERCHANT_MEMBER_ERROR);
    }

    /**
     * 删除会员资料配置
     *
     * @param configVO 接口参数
     * @return 操作结果
     */
    @Override
    public Wrapper<?> deleteMemberDetail(MemberConfigVO configVO) {
        return Wrapper.fail(ResponseCode.SERVICE_MERCHANT_MEMBER_ERROR);
    }

    /**
     * 新增或修改平台规则配置
     *
     * @param rules 平台规则
     * @return 操作结果
     */
    @Override
    public Wrapper<Void> updateOrInsertMemberRules(List<MemberRuleFeignVO> rules) {
        return Wrapper.fail(ResponseCode.SERVICE_MERCHANT_MEMBER_ERROR);
    }
}
